<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    var arr1 = [[5, 7, 9, 11, 55, 66, 22], [5, 22, 54, 67, 55, 9, 62]]
    arr = arr1[0].concat(arr1[1])

    for (var i = 0; i < arr.length; i++) {
      for (var j = i + 1; j < arr.length; j++) {
        if (arr[i] == arr[j]) {
          arr.splice(j, 1);
          j--;
        }
      }
    }
    console.log(arr);

  </script>
</body>

</html>